﻿using System.Configuration;
using System.Data;
using System.IO;
using System.Windows;
 
namespace MyEditor;

/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{

    
    
    
    
    
    
    
    
    
    
    
    
    protected override void OnStartup(StartupEventArgs e)
    {
        base.OnStartup(e);

        if (e.Args.Length > 0)
        {
            string arg = e.Args[0];

            if (arg == "uninstall_clean__")
            {
                MessageBox.Show("是卸载程序吗???");
                Registry_Cleaner_CurrentUser.Delete_App_Shell_Keys(MyConfig.AppName);
                Application.Current.Shutdown();
                return;
            }
            else if (arg == "install_init__")
            {
                MessageBox.Show("安装初始化......");
                Registry_Add.Register_Context_Menu();
                Application.Current.Shutdown();
                return;
            }
        }
    }

    
    
    
    

}